package tinyms.posture.jobs;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import tornadoj.data.Jdbc;

import java.util.List;
import java.util.Map;

/**
 *
 * Created by tinyms on 15/10/9.
 */

@DisallowConcurrentExecution
public class IndexPostureDataJob implements Job{
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        List<Map<String, Object>> ds = Jdbc.base().queryForList("SELECT * FROM TABLE WHERE is_indexed = 0 LIMIT 10");
    }
}
